package com.newbingo.dto;

import java.io.Serializable;

import com.newbingo.entity.BettingCell;

/*
 * 投注格的DTO对象
 */
public class BettingCellDto implements Serializable {
	private Integer id;
	private String name;
	private float rate;
	
	/*
	 * 将BettingCell对象转为DTO对象
	 */
	public BettingCellDto changeToDto(BettingCell bettingCell){
		BettingCellDto dto=new BettingCellDto();
		dto.setId(bettingCell.getId());
		dto.setName(bettingCell.getName());
		dto.setRate(bettingCell.getRate());
		return dto;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getRate() {
		return rate;
	}
	public void setRate(float rate) {
		this.rate = rate;
	}


}
